<template>
  <div>
    <DetailPage
      v-bind="detailConfig"
      :model="ExtendMod"
      style="width: 98%; margin: 0 auto">
      <template v-slot:rosterList="{ row }">
        <ApldTable
          :columns="row.column"
          :data="rowData"></ApldTable>
      </template>
    </DetailPage>
  </div>
</template>

<script setup lang="ts">
import { ApldTable } from '@/components/AplidCrud'
import DetailPage from '@/views/aplid/DetailPage/index.vue'
import { detailConfig } from '../config'
import apiMod from '@/apiMod/index'
type Props = {
  nowRowData?: any,
}
const props = withDefaults(defineProps<Props>(), {})
let rowData: any = ref([])

const ExtendMod = props.nowRowData
// 拿到初始化花名册数据
let getInitData = () =>{
  let data = {
    organizationName:props.nowRowData.organizationName,
    pageParaPO:{
      current:1,
      size:100000000
    },
    code:3010
  }
  apiMod.dpOrgOperateSubsidyRoster_page(data).then(res=>{
    rowData.value = res.data.records
  })
}

onMounted(()=>{
  getInitData()
})
</script>
<style scoped lang="scss"></style>